// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from '@/libs/request';

/**
 * @description 列表
 * @param {Object} param data {Object} 传值参数
 */
export function ListApi(data) {
  return request({
    url: 'carlen/list',
    method: 'get',
    params: data,
  });
}

/**
 * @description 文章分类--新增表单
 */
export function addFormApi() {
  return request({
    url: `carlen/create`,
    method: 'GET',
  });
}

/**
 * @description 编辑表单
 * @param {Number} param id {Number} 文章id
 */
export function editFormApi(id) {
  return request({
    url: `carlen/edit/${id}`,
    method: 'GET',
  });
}
/**
 * @description 删除
 * @param {Number} param id {Number} 文章id
 */
export function delApi(id) {
  return request({
    url: `carlen/del/${id}`,
    method: 'GET',
  });
}